package domo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2024-06-02
 * Time: 14:59
 */
public class Test {
    public static void main(String[] args) {
        String str1 = "Hello, world!";
        String str2 = str1.replaceAll("l","_");
        System.out.println(str2);
        String str3 = str1.replaceFirst("l", "_");
        System.out.println(str3);
    }
}
